package com.the9.C9Alarm;

import android.app.Instrumentation;
import android.test.InstrumentationTestCase;
import android.util.Log;

public class SleepText extends InstrumentationTestCase {
	public static String getText(int time,boolean islaichuang){
		if(face_cry==null){
		iniString();
		}
		String sweetText ;
		String timeText ;
		if (time == Integer.MAX_VALUE){
			timeText="";
			sweetText=text_angry[(int) (Math.random()*text_angry.length)]+Symbol.SPLIT+face_angry[(int) (Math.random()*face_angry.length)];

		}else{
			String buff= Utils.getFormatTimeWithSeconds(time);
			Utils.submitScore(time,buff);
			timeText="本次起床花费了" + buff;
			
		if(islaichuang==false)
		{
			sweetText="\n"+text_happy[(int) (Math.random()*text_happy.length)]+Symbol.SPLIT+face_happy[(int) (Math.random()*face_happy.length)];
		}else{
			sweetText="\n"+text_cry[(int) (Math.random()*text_cry.length)]+Symbol.SPLIT+face_cry[(int) (Math.random()*face_cry.length)];
		}
		}
		return timeText+sweetText;
	}

	public static void iniString() {
		name = "小闹";
		face_cry = new String[] { "T.T", "(￣﹏￣)", "(￣.￣)", "(⊙ˍ⊙)", "╮(╯▽╰)╭",
				"(＞﹏＜)", "(￣o￣) . z Z", "<(￣ ﹌ ￣)> ", "∪ˍ∪", "∪０∪", "∪︿∪",
				"∪ε ∪", "∪ 3∪", "∪ω∪", "∪﹏∪", "∪△∪", "∪▽∪", "○|￣|_" };
		face_happy = new String[] { "(๑￫ܫ￩)", "(｡・`ω´･)", "(・(ｪ)・)",
				"(σ｀・д･)σ", "(oﾟωﾟo)", "(≧3≦)", "(≧ω≦)", "o(≧ω≦)o", "o(≧o≦)o ",
				"( ° ▽、° )" };
		face_angry = new String[] { "╭∩╮_()︿﹀﹀_╭∩╮", "（*－.－）", " Σ( ￣□￣；)",
				"(/≡ _ ≡)/~┴┴ ", "（#－.－）", " (╬￣皿￣)凸 ", "(￣ε(#￣)☆╰╮o(￣皿￣///)",

				"(￣ε(#￣)☆╰╮o()︿)///)",

				"( ￣ ▽￣)o╭╯☆#╰ _─﹏─)╯",

				"( ￣ ▽￣)o╭╯☆#╰( ￣﹏￣)╯"

		};

		text_angry = new String[] { "主人放弃了起床挑战~咕~主人你到底有没有赖床呢", "唔" + name +"的游戏不好玩么，还是说太难了。。哼，人家也没有期待着你来玩啦" };
		text_happy = new String[] { "主人起床成功了呐~呐呐，主人早上好" ,"早起早睡身体好，明天也要和"+name+"一起准时起床哦"};
		text_cry = new String[] { "主人起床失败了~下次要加油哦" };

		

	}
	
	 
	static String[] face_cry ;
			
	static String[] face_angry ;
	static String[] face_happy;
	static String[] text_cry ;//= new String[] {"主人放弃了起床挑战~咕~主人你到底有没有赖床呢","唔"+name };
	static String[] text_happy ;//= new String[] {"主人起床成功了呐~呐呐，主人早上好" };
	static String[] text_angry;//= new String[] {"主人起床失败了~下次要加油哦" };
	
	static String name;// = "小闹";
	 


}
